﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Model.Dtos.Users
{
    /// <summary>
    /// 邮箱找回密码dto
    /// </summary>
    public class EmailRetrievePasswdDTO
    {
        /// <summary>
        /// 邮箱
        /// </summary>
        [Required(ErrorMessage = "邮箱不能为空")]
        [EmailAddress(ErrorMessage = "输入正确的邮箱格式")]
        public string? Email { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        [MaxLength(16, ErrorMessage = "密码不能大于16个字符")]
        [MinLength(6, ErrorMessage = "密码不能小于6个字符")]
        public string? Password { get; set; }

        /// <summary>
        /// 邮箱验证码
        /// </summary>
        [Required(ErrorMessage = "邮箱验证码不能为空")]
        public string? Verificationcode { get; set; }

        /// <summary>
        /// 客户端key
        /// </summary>
        [Required(ErrorMessage = "客户端key不能为空")]
        public string? Verificationkey { get; set; }
    }
}